home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / LORD2B6.ZIP / FLAGCITY.REF < prev    next >
Text File  |  1997-05-16  |  12KB  |  648 lines

  1. ;File for the Western city on the first continent  Flagcity
  2.  
  3. @#CITYSIGN
  4. ;Sign helping find the way to flagcity
  5. @DO SAYBAR
  6. `2 <---------   To Flagcity
  7. @do moveback
  8.  
  9. @#CAVERN
  10. ;Looking into the deep cavern on snowy ridge
  11. @if &lasty is 6 then do
  12.   @begin
  13. @DO SAYBAR
  14. `2You narrowly escape death!  That was a crappy place to warp to!
  15. @closescript
  16.   @end
  17. @DO SAYBAR
  18. `2That's DEEP, don't fall in there.
  19.  
  20. @#DSIGN
  21. ;Sign by the desert 
  22. @DO SAYBAR
  23. `2 <---------   Flagcity     Desert   --------->
  24. @do moveback
  25.  
  26. @#heal
  27. @offmap
  28. @do moveback
  29. @do `v01 is 1
  30. @show
  31. `r0`c  `r1  FlagCity Healing  `r0
  32.  
  33. `2  Arik looks you over for wounds.
  34.  
  35. @do write
  36. `x`x
  37. @if `p02 < `p03 then do
  38.  @begin
  39. @do `p20 is `p03
  40. @do `p20 - `p02
  41. @do `p20 / 2
  42.  
  43.  
  44.  @show
  45. `0"You don't look so good, friend!  I'll fix ya up for `$`p20`0 gold, k?"
  46.  
  47. @do write
  48. `x`x
  49. @choice
  50. Heal yourself for `$$`p20`%. (you have `$$&money`%)
  51. Limp on out.
  52. @show
  53. `\
  54. @if response is 1 then do begin
  55.  @begin
  56.  @if money < `p20 then do
  57.   @begin
  58.   @show
  59.   `0"Sorry old s&boy, we don't do charity work here."
  60.  
  61.  @do write
  62. `x`x
  63.  @choice
  64. Well Christ!  How am I supposed to make money when I can barely walk?
  65. Jesus, how 'bout a little compassion for once in your life old man!
  66. How 'bout some of your 'special' pills then?
  67. Yes sir.
  68. @show
  69.  
  70.  
  71. @if response is 4 then do
  72.  @begin
  73.  @show
  74.   `0"That's a good lad, now get along with you!" `2 he laughs.
  75.  
  76. `k
  77.  @end
  78.  
  79. @if response is 1 then do
  80.  @begin
  81.  @show
  82.   `0"Damn it, s&boy, be a s&man for once in your life!"`2 he yells.
  83.  
  84. `k
  85.  @end
  86. @if response is 2 then do
  87.  @begin
  88.  @show
  89.   `0"I cannot respect a man who doesn't work," `2Arik informs you.
  90.  
  91. `k
  92.  @end
  93. @if response is 3 then do
  94.  @begin
  95.  @do `p02 = 1
  96.  @show
  97.   `0"Sure.  Take uh.. these." `2 he snickers.
  98.  
  99.   `2You gulp down the weird black pills
  100.  
  101.   `4HIT POINTS GO DOWN TO 1.
  102.  
  103. `k
  104.  @end
  105.  
  106.   @drawmap
  107.   @update
  108.   @closescript
  109.   @end
  110.  
  111. @do money - `p20
  112. @do `p21 = `p03
  113. @do `p21 - `p02
  114. @do `p02 = `p03
  115. @show
  116.   `2You feel much better as `0`p21`2 hitpoints are restored.
  117.  
  118. `k
  119.   @end
  120.   @drawmap
  121.   @update
  122.   @closescript
  123. @end
  124.  
  125. @show
  126. `0"You have no ailments, come back later!" `2Arik laughs.
  127.  
  128. `k
  129. @drawmap
  130. @update
  131.  
  132. @#bank
  133. @do `v01 is 1
  134. @offmap
  135. @do moveback
  136. @label bankstart
  137. @show
  138. `r0`c  `r1  `%3rd Bank Of FlagCity  `r0
  139.  
  140. `2  A young clerk eyes you nervously.
  141.  
  142. @if bank more 0 then do
  143.  @begin
  144.  @show
  145. `2  You are holding `$$&money`2, your account is at `$$&bank`2.
  146.  
  147.  @end
  148.  
  149. @if bank is 0 then do
  150.  @begin
  151.  @show
  152. `2  You currently don't have an account with them.
  153.  
  154.  @end
  155.  
  156. @do write
  157. `x`x
  158. @choice
  159. >&bank 0 Make a deposit.
  160. >&bank 0 Make a withdraw.
  161. =&bank 0 Apply for an account here.
  162. Leave
  163. @if response is 3 then do
  164.   @begin
  165.   @do `v01 is 1
  166.   @show
  167.  
  168.  
  169.   `2The nervous boy asks you to sit down.
  170.  
  171.   `0"Your full name s&sir?"
  172.   @do `s01 is NIL
  173.   @do write
  174. `x`x
  175.   @do readstring 30 `s01
  176.   @show
  177.  
  178.  
  179.   `0"Your current residence?"
  180.  
  181.   @do write
  182. `x`x
  183.   @do readstring 50 `s01
  184.  
  185.   @show
  186.  
  187.  
  188.   `0"Your net income yearly?"
  189.  
  190.   @do write
  191. `x`x
  192.   @do readnum 10
  193.   @if `v40 less 20 then do
  194.   @begin
  195.   @show
  196.  
  197.   @end
  198.  
  199.   @if `v40 more 19 then do
  200.    @begin
  201.    @show
  202.  
  203.  
  204.   `2You giggle to yourself `0-`2 how will they know you just totally lied on
  205.   that last questions?!??  You only made `b19`2 gold pieces last year!
  206.   @end
  207.   @label bankagain
  208.   @show
  209.  
  210.   `0"How much would you like to open your account with?" `2(you have `$$&money`2)
  211.  
  212.   @do write
  213. `x`x
  214.   @do readnum 10 money
  215.   @if `v40 is 0 then do
  216.    @begin
  217.    @show
  218.  
  219.  
  220.   `2You decide you really don't want to open an account with this
  221.   branch.
  222.  
  223. `k
  224.   @do goto bankstart
  225.   @end
  226.  
  227.   @if `v40 > money then do
  228.    @begin
  229.    @show
  230.  
  231.  
  232. `2  You don't have this much!  Try again.
  233.    @do goto bankagain
  234.    @end
  235.  
  236.   @if `v40 < 50 then do
  237.   @begin
  238.   @if money < 50 then do
  239.    @begin
  240.   @show
  241.  
  242.   `2The clerk eyes your shabby clothing distastefully - as if he knew
  243.   this part was coming.
  244.  
  245.   `0"I'm sorry s&sir, we do require `$$50 `2to open an account.  And could
  246.   you please leave the pen on your way out." `2he asks haughtily.
  247.  
  248. `k  `2You carefully return the pen.  `$"I'll be back someday.  And you WILL
  249.   open an account for me then," `2you vow seriously.
  250.  
  251.   `0"Of course you will, s&sir.  Please exit now, remember, the sign does
  252.   say no loitering.  And this means you." `2he says as he points to the
  253.   door.
  254.  
  255. `k
  256. @drawmap
  257. @update
  258. @closescript
  259.    @end
  260.  
  261.   @show
  262.  
  263.  
  264.   `0"S&Sir, `$$50 `0is required to open a new account!"
  265.   @do goto bankagain
  266.   @end
  267.   @do money - `v40
  268.   @do bank + `v40
  269.   @show
  270.  
  271.  
  272.   `0"Very good S&sir!  Your new account has been opened!"
  273.  
  274. `k
  275.   @do goto bank
  276.   @end
  277.  
  278.  
  279. @if response is 1 then do
  280.   @begin
  281.   @do write
  282. `\
  283.   @label deposit
  284.   @do write
  285. `\  `0"Deposit how much, s&sir?"`\`\`x`x
  286.   @do readnum 10 money
  287.   @if `v40 more money then do
  288.   @begin
  289.   @show
  290. `\`\  `2Maybe you left the money in your other pants?  'cuz it sure ain't here.
  291.   @do goto deposit
  292.   @end
  293.   @if `v40 less 0 then do
  294.   @begin
  295.   @show
  296. `\`\  `2No, this isn't happening and you aren't here.
  297.   @do goto withdraw
  298.   @end
  299.  
  300.   @do money - `v40
  301.   @do bank + `v40
  302.   @do goto bankstart
  303.  
  304.   @end
  305.  
  306. @if response is 2 then do
  307.   @begin
  308.   @do write
  309. `\
  310.   @label withdraw
  311.   @do write
  312. `\  `0"Withdraw how much, s&sir?"`\`\`x`x
  313.   @do `p21 is bank
  314.   @do `p21 - 1
  315.   @if `p21 < 0 then `p21 is 0
  316.   @do readnum 10 `p21
  317.   @if `v40 more bank then do
  318.   @begin
  319.   @show
  320. `\`\  `2You kind of don't have that much in your account.  Nice bookeeping!
  321.   @do goto withdraw
  322.   @end
  323.  
  324.   @if `v40 less 0 then do
  325.   @begin
  326.   @show
  327. `\`\  `2No, I don't think so.
  328.   @do goto withdraw
  329.   @end
  330.  
  331.   @if `v40 is bank then do
  332.    @begin
  333.    @show
  334.  
  335.  
  336.   `0"But s&sir!  This will close your account with us, are you sure you wish
  337.   to do that?" `2the clerk chokes.
  338.  
  339.   @do write
  340. `x`x
  341.   @do `v01 is 1
  342.   @choice
  343. Ok, nevermind then.
  344. Yeah.  Get my damn money.
  345. @if response is 1 then goto bank
  346.  
  347.    @end
  348.  
  349.   @do money + `v40
  350.   @do bank - `v40
  351.   @do goto bankstart
  352.   @end
  353.  
  354.  
  355.  
  356. @drawmap
  357. @update
  358.  
  359.  
  360. @#APOTH
  361. ;The apothecary
  362. @DO SAYBAR
  363. `2Sorry, the apothecary is not done yet. 
  364. @do moveback
  365.  
  366. @#INN
  367. ;FlagCity Inn
  368. @offmap
  369. @do moveback
  370. @DO `v01 is 1
  371. @show
  372. `r0`c  `r1  FlagCity Inn  `r0
  373.  
  374.   `2You step into the wooden building.  An old man sits behind a wooden
  375.   counter staring at the sun.  He notices you and speaks.
  376.   `0"Hello, need a room sonny?  They're `$$90`0 here."`2
  377.  
  378. @DO WRITE
  379. `x`x
  380. @CHOICE
  381. >&money 89 Get a room
  382. Take off
  383. @if response is 1 then do
  384. @begin
  385. @do money - 90
  386. @show
  387. `\`\  `0"Enjoy your stay here."
  388. `\`k
  389.  @do map is 73
  390.  @loadmap 73
  391.  @do x is 8
  392.  @do y is 10
  393. @drawmap
  394. @update
  395. @closescript
  396. @end
  397. @drawmap
  398. @update
  399. @end
  400.  
  401. @#TMAN
  402. ;Traveling man by the desert
  403. @DO MOVEBACK
  404. @BUSY
  405. @DO `v01 is 1
  406. @SHOW
  407. `r0`c  `r1  Rocky Alcove  `r0
  408.  
  409.   `2You round the bend of these small sandy mountains to find a man peacefully
  410.   sitting in the sun.  He notices you and nods.
  411.   `0"Hello my fellow traveler"`2
  412.  
  413. @DO WRITE
  414. `x`x
  415. @CHOICE
  416. Say hi
  417. Leave, quick!!
  418. @drawmap
  419. @update
  420. @end
  421.  
  422. @#CAVE
  423. ;Cave entrance to FlagCity
  424. @SHOW
  425. `r0`c  `r1 Dark mysterious ocean cave `r0
  426.  
  427.   `2You round the next part of the rocky coastline to find a cave you didn't
  428.   notice before.  Hestantly you brave you way up the cold dark passage until
  429.   finally you hear ... voices!!  It sounds like a town up there.
  430.  
  431. `/`k
  432.  @do map is 151
  433.  @loadmap 151
  434.  @do x is 15
  435.  @do y is 10
  436. @drawmap    
  437. @update
  438.  
  439. @#CITYHALL
  440. ;FlagCity city hall
  441. @OFFMAP
  442. @DO MOVEBACK
  443. @label town
  444. @DO `v01 is 1
  445. @SHOW
  446. `r0`c  `r1  City Hall  `r0
  447.  
  448.   `2You step into the luxurious building finding a nervous looking noble
  449.   standing behind a counter.  He sees you and nods.
  450.   `0"Good day s&sir, how may the Crown help you?"`2
  451.  
  452. @DO WRITE
  453. `x`x
  454. @CHOICE
  455. Pay your taxes
  456. Complain about the Bounty offices
  457. Leave, quick!!
  458. @IF RESPONSE IS 1 THEN DO
  459.   @BEGIN
  460.   @IF &MONEY > 49 THEN DO
  461.   @BEGIN
  462.   @DO MONEY - 50
  463.   @SHOW
  464. `\`\  `$"I'd like to be a good subject and pay my taxes,"`2 you say.
  465.  
  466.   `0"Very well, that'll be 50 gold s&sir"`2 he states.  A chill
  467.   runs down your back as you pay.
  468. `\`k
  469.   @do goto town
  470.   @END
  471.   @SHOW
  472. `\`\  `$"I'd like to pay my taxes!"`2 you merrily say.
  473.  
  474. `k  `0"I'm sorry sir, you don't have enough money." says the noble.
  475. `\`k
  476. @do goto town
  477. @END
  478. @IF RESPONSE IS 2 THEN DO
  479.   @BEGIN
  480.   @SHOW
  481. `\`\  `$"What's with those damn bounty hunters next door?"`2 you demand.
  482.  
  483.   `0"You go yell at them, I'm not gonna die!"`2 he yells.
  484. `\`k
  485. @do goto town
  486. @END
  487. @drawmap
  488. @update
  489. @end
  490.  
  491.  
  492. @#BOUNTY
  493. ;The Bounty Hunting Office
  494. @OFFMAP
  495. @DO MOVEBACK
  496. @label hunt
  497. @DO `v01 is 1
  498. @SHOW
  499. `r0`c  `r1  Bounty Office  `r0
  500.  
  501.   `2A helmeted man with a crossbow slung to his side stands behind the
  502.   counter.  He looks looks well seasoned and speaks with a raspy voice,
  503.   `0"Good afternoon, how may we ... help you?"`2
  504.  
  505. `2  You see the word `0'Nickabrick' `2carved into his arm.
  506.  
  507. @DO WRITE
  508. `x`x
  509. @CHOICE
  510. Place a bounty on someone
  511. Pay off your own bounty
  512. Ask for advice
  513. Check out their weapons
  514. Conduct 'business' with Nickabrick
  515. Leave, quick!!
  516. @if response is 5 then do
  517.   @begin
  518.   @do `p20 is 3
  519.   @run getquest in quest.ref
  520.   @end
  521.  
  522. @IF RESPONSE IS 1 THEN DO
  523.   @BEGIN
  524.   @SHOW
  525. `\`\  `$"I need to make someone's life hard, can you help?,"`2 you say.
  526.  
  527.   `0"Not yet, but in the next beta watch out!"`2 he states calmly.  A chill
  528.   runs down your back.
  529. `\`k
  530. @do goto hunt
  531.   @END
  532. @IF RESPONSE IS 2 THEN DO
  533.   @BEGIN
  534.   @SHOW
  535. `\`\  `$"Someone hates me, but I have more money than them.  Please stop
  536.   chasing me."`2 you state.
  537.  
  538.   `0"Very well, now you're no good to me dead."`2
  539. `\`k
  540. @do goto hunt
  541.   @END
  542. @IF RESPONSE IS 3 THEN DO
  543.   @BEGIN
  544.   @SHOW
  545. `\`\  `$"Excuse me, could you give me some advice?"`2 you ask.
  546.  
  547. `k  `0"Money makes the world go around.  And if you have enough when we
  548.   catch up with you it just might save ya."`2 he offers.
  549. `\`k
  550. @do goto hunt
  551.   @END
  552. @IF RESPONSE IS 4 THEN DO
  553. @Begin
  554. @Show
  555. `\`\  `$"I'm kinda in the business myself," `2you say.  `$"What tools do you
  556.   recommend?"  `2He smiles, `0"These have helped many a hunter..."
  557.   `2You review your choices.
  558.  
  559. `k
  560. @show
  561. `r0`c                         `r1 `%Bounty Hunting weapons
  562.  
  563.  
  564. @buymanager
  565. 4
  566. 12
  567. 38
  568. 49
  569. @do goto hunt
  570. @End
  571. @drawmap
  572. @update
  573. @end
  574.  
  575. @#TICKET
  576. ;The travel offices
  577. @DO MOVEBACK
  578. @BUSY
  579. @DO `v01 is 1
  580. @SHOW
  581. `r0`c  `r1`%   FlagCity Travel  `r0
  582.  
  583.   `0"Welcome to Flagcity travel, what can I do for you?" `2Asks a receptionist.            
  584. @DO WRITE
  585. `x`x
  586. @CHOICE
  587. Pick up a world map
  588. Buy a ticket for somewhere
  589. Leave
  590. @IF RESPONSE IS 1 THEN DO
  591. @Begin
  592. @Show
  593. `\`\  `$"I'd need to grab a map from ya,"`2 you reply.
  594. `\`k  `0"Okay that'll be 20 gold,"`2 she states.
  595.  
  596. @if money < 19 then do
  597.         @BEGIN
  598.         @show
  599.   `2You don't have that much, so again you take it out on her.
  600.  
  601. `k  `$"Look you stupid lady, why ever do maps cost that much?!?! You just
  602.   lost a big time client, woman!" `2you scream.
  603.  
  604. `k  `2You see tears from her eyes as you stomp off.
  605. `\`k
  606.         @DRAWMAP
  607.         @UPDATE
  608.         @CLOSESCRIPT
  609.         @End
  610. @show
  611. `2  You plop down the money.`\`\`k
  612. @do money - 20
  613. @do `i20 + 1
  614. @DRAWMAP
  615. @UPDATE        
  616. @CLOSESCRIPT
  617. @End
  618.  
  619. @IF RESPONSE IS 2 THEN DO
  620. @Begin
  621. @Show
  622. `\`\  `$"I need to go somewhere," `2you say.  She nods, `0"Okay where
  623.    would you like to go today?" `2You eye her & review your choices.
  624.  
  625. `k
  626. @show
  627. `r0`c                         `r1 `%Flagcity Travel Center
  628.  
  629.  
  630. @buymanager
  631. 26
  632. 27
  633. 32
  634. @do goto TICKET
  635. @End
  636. @IF RESPONSE IS 3 THEN DO
  637. @Begin
  638. @Show
  639. `\`\  `$"Sorry I uh ... gotta go,"`2 you say heading out the door.
  640. `\`k
  641. @DRAWMAP
  642. @UPDATE        
  643. @CLOSESCRIPT
  644. @End
  645.  
  646.  
  647. @#done
  648.